ClassRef

abstract class ClassRef(name: String, parent: Namespace?) : Namespace, Reference<IrClassSymbol>

A class reference. Should be the superclass of an object inside another Namespace. The parent will be auto-filled (at compile time), as will the name if not set. The parent will be the enclosing object, which must be a Namespace. By default, the name is the object name.

If parent is specified, it must be non-null.

For an example, see com.rnett.plugin.stdlib.Kotlin.Collections.List.

Constructors

ClassRef
Link copied to clipboard
fun ClassRef(name: String)
ClassRef
Link copied to clipboard
fun ClassRef()
ClassRef
Link copied to clipboard
fun ClassRef(name: String, parent: Namespace?)

Functions

getValue
Link copied to clipboard
inline operator fun getValue(thisRef: Any?, property: KProperty<*>): ClassRef
invoke
Link copied to clipboard
open operator fun invoke(context: IrPluginContext): IrClassSymbol
resolve
Link copied to clipboard
open override fun resolve(context: IrPluginContext): IrClassSymbol
resolveOrNull
Link copied to clipboard
open override fun resolveOrNull(context: IrPluginContext): IrClassSymbol?
toString
Link copied to clipboard
open override fun toString(): String

Properties

fqName
Link copied to clipboard
val fqName: FqName

Inheritors

KClass
Link copied to clipboard
Any
Link copied to clipboard
String
Link copied to clipboard
Map
Link copied to clipboard
MutableMap
Link copied to clipboard
Set
Link copied to clipboard
MutableSet
Link copied to clipboard
List
Link copied to clipboard
MutableList
Link copied to clipboard
Number
Link copied to clipboard
Byte
Link copied to clipboard
Short
Link copied to clipboard
Int
Link copied to clipboard
Long
Link copied to clipboard
Float
Link copied to clipboard
Double
Link copied to clipboard
Throwable
Link copied to clipboard
Error
Link copied to clipboard
Exception
Link copied to clipboard
RuntimeException
Link copied to clipboard
IllegalArgumentException
Link copied to clipboard
IllegalStateException
Link copied to clipboard
UnsupportedOperationException
Link copied to clipboard
AssertionError
Link copied to clipboard
IndexOutOfBoundsException
Link copied to clipboard
ClassCastException
Link copied to clipboard
NullPointerException
Link copied to clipboard
NoSuchElementException
Link copied to clipboard

Extensions

constructor
Link copied to clipboard
fun ClassRef.constructor(filter: IConstructorFilter.() -> Unit): ConstructorRef

Get a constructor from this ClassRef that matches filter.

primaryConstructor
Link copied to clipboard
fun ClassRef.primaryConstructor(filter: IConstructorFilter.() -> Unit = {}): ConstructorRef

Get the primary constructor from this ClassRef that matches filter.

Sources

jvm source
Link copied to clipboard